﻿@*@model IEnumerable<demo86.Models.Result>*@
@model PagedList.IPagedList<demo86.Models.Result>
@using PagedList.Mvc
@{
    Layout = null;
}

<!DOCTYPE html>

<html>
<head>
    <meta name="viewport" content="width=device-width" />
    <link href="~/Content/PagedList.css" rel="stylesheet" />
    <title>Show</title>
</head>
<body>
    <div>
        @using (Html.BeginForm("Show", "Result", FormMethod.Get))
        {
            <p>
                名字查找：@Html.TextBox("Search", ViewBag.CurrentFilter as string)
                <input type="submit" value="Seach" />
            </p>
        }
    </div>
    <div>
        @foreach (var item in Model)
        {
            <div class="newsitem">
                <div>
                    <img src="@item.img" class="hoverimg" alt="News" />
                    <h3>
                        <a href="@item.url">@item.title</a>
                    </h3>
                    <p>
                        @item.content
                    </p>
                </div>
                <div>
                </div>
            </div>
        }
        page@(Model.PageCount < Model.PageNumber ? 0 : Model.PageNumber)   of @Model.PageCount
        @Html.PagedListPager(Model, page => Url.Action("Show", new { page }))

    </div>
</body>
</html>
